package yja.gzw.app

import android.app.Application
import android.util.Log
import android.widget.Toast
import com.baidu.oauth.sdk.auth.AuthInfo
import com.baidu.oauth.sdk.auth.BdOauthSdk
import com.bytedance.sdk.open.douyin.DouYinOpenApiFactory
import com.bytedance.sdk.open.douyin.DouYinOpenConfig
import com.kwai.auth.ILoginListener
import com.kwai.auth.KwaiAuthAPI
import com.kwai.auth.common.InternalResponse
import com.kwai.auth.login.kwailogin.KwaiAuthRequest
import com.tencent.imsdk.v2.V2TIMManager
import com.tencent.imsdk.v2.V2TIMSDKConfig


class MyApp : Application(){

    override fun onCreate() {
        super.onCreate()


        KwaiAuthAPI.init(this);
        val config = V2TIMSDKConfig()

        config.logLevel = V2TIMSDKConfig.V2TIM_LOG_INFO

        V2TIMManager.getInstance().initSDK(this,1600072775, config)


        val clientkey = "aw8lj7m8q1ei9u93" // 需要到开发者网站申请
        DouYinOpenApiFactory.init(DouYinOpenConfig(clientkey))

        val authInfo = AuthInfo(
           this, "AkO0iZ33o4bHXlcD4GQJPR9e1b8nz35r","oob",
            "basic,netdisk"
        )
        BdOauthSdk.init(authInfo)

    }
}